package com.doone.telmarket.domain;


/**
 * 
 * @author 吴同庆
 * @date 2009-9-18
 * @description 站点文件
 * @package     com.doone.telmarket.domain
 */
public class SiteFile {

	private static final String DELIMITER = ".";
	
	private static final String DEFAULT_EXTENSION = "html";

	private String name;

	private String extension;
	
	public SiteFile(String name){
		this.name = name;
		this.extension = DEFAULT_EXTENSION;
	}
	
	public SiteFile(String name,String extension){
		this.name = name;
		this.extension =extension;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getExtension() {
		return extension;
	}

	public void setExtension(String extension) {
		this.extension = extension;
	}
	
	public String getFullName()
	{
		StringBuffer buffer = new StringBuffer();
		buffer.append(this.getName());
		buffer.append(DELIMITER);
		buffer.append(this.getExtension());
		return buffer.toString();
	}




}
